package com.rongc.client.freight.business.waybill.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  评价
* */

public class WaybillReplyApi extends AbsRequest<WaybillReplyApi.WaybillReplyParams, NullResult> {

    public WaybillReplyApi(WaybillReplyParams feedbackParams, Listener<NullResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getWaybillReplayUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class WaybillReplyParams extends BaseParams {

        public WaybillReplyParams(String id,String contents,String score) {
            put("userId",UniApplication.getInstance().getUserInfo().getUserId());
            put("id",id);
            put("contents",contents);
            put("score",score);
            put("type", UniApplication.getInstance().getType());
        }
    }


}
